package system.model.converter;

import common.model.po.SysUpdateLog;
import system.model.request.SaveUpdateLogRequest;

/**
 * 在此填写类的用途、注意事项等
 *
 * @author 米泽鹏
 * @since 2021-08-08 下午 8:41
 */
public class SysUpdateLogConverter {

	public static SysUpdateLog saveRequestToPo(SaveUpdateLogRequest saveUpdateLogRequest) {
		if (saveUpdateLogRequest == null) {
			return null;
		}
		SysUpdateLog sysUpdateLog = new SysUpdateLog();
		sysUpdateLog.setTitle(saveUpdateLogRequest.getTitle());
		sysUpdateLog.setContent(saveUpdateLogRequest.getContent());
		sysUpdateLog.setReleaseTime(saveUpdateLogRequest.getReleaseTime());
		sysUpdateLog.setId(saveUpdateLogRequest.getId());
		return sysUpdateLog;
	}

}
